this._update_loadAgain_sameValue_core(
'update_loadAgain_sameValue_zeroCharOnly.txt', 'property83784', String.fromCharCode(0) + 'abcd',
update_loadAgain_sameValue_zeroCharSuffix(callback: (error: Error) => void) { this._update_loadAgain_sameValue_core(
'update_loadAgain_sameValue_zeroCharOnly.txt', 'property83784', 'abcde' + String.fromCharCode(0),
update_loadAgain_sameValue_zeroCharMiddle(callback: (error: Error) => void) { this._update_loadAgain_sameValue_core(
'update_loadAgain_sameValue_zeroCharOnly.txt', 'property83784', 'abcde' + String.fromCharCode(0) + 'zxcvbnm',
update_loadAgain_sameValue_charCodesUnder32(callback: (error: Error) => void) { for (var i = 0; i < 32; i++) chars + String.fromCharCode(i);
this._update_loadAgain_sameValue_core(
'update_loadAgain_sameValue_charCodesUnder32.txt', 'property83784', chars,
private _update_loadAgain_sameValue_core(fileName: string, property: string, value: string, callback: (error: Error) => void) { var ukey = this._generateKey();
(error, meta, access) => { callback(new Error('BootAccess.open() returned null ' + access)); var byFullPath: any = {}; byFullPath[fileName] = {}; byFullPath[fileName][property] = value;
access.update(byFullPath, 10, (error) => { (error, meta, access) => { access.read(fileName, (propBag) => { if (!propBag[property]) { callback(new Error('File is not reported on subsequent load.')); var propertyValue = propBag[property];
callback(propertyValue === value ? null : new Error('Wrong value ' + JSON.stringify(propertyValue) + ' instead of ' + JSON.stringify(value))); private _generateKey(): string { return Math.random() + '-' + Math.random();